package com.bwie.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/4/22 11:15
 * @Version 1.0
 */
@Configuration
public class KafkaConfig {
    public static final String TOPIC_LOGIN="topic_login";

    @Bean
    public NewTopic topicLogin(){
        return new NewTopic(TOPIC_LOGIN,1, (short) 1);
    }
}
